package cn.cvs.dao;

import cn.cvs.pojo.SysUser;
import cn.cvs.service.SysUserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SysUserMapperTest {

    @Test
    public void findByAccount() {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        SysUserService sysUserService = context.getBean(SysUserService.class);
        SysUser sysUser = sysUserService.findByAccount("111");
        System.out.println(sysUser.getRealName());
    }
}